//
//  MBProgressHUD+ZUtilities.h
//  WeClubs
//
//  Created by Zed Link on 9/4/2017.
//  Copyright © 2017 Zed. All rights reserved.
//

#import <MBProgressHUD/MBProgressHUD.h>

@interface MBProgressHUD (ZUtilities)

/**
 弹窗提示, 持续显示指定时间后消失
 */
+ (MBProgressHUD *)zAlertMessage:(NSString *)message to:(UIView *)view afterDelay:(NSTimeInterval)delay;

/**
 弹窗提示, 点击确定后消失
 */
+ (MBProgressHUD *)zAlertToastMessage:(NSString *)message;

/**
 弹出进行中提示
 */
+ (MBProgressHUD *)zAlertProgress:(NSString *)message;

/**
 弹窗提示, 点击确定后将执行指定的方法, 让视图消失需要手动调用zCancelAlertForView:方法
 该方法尚未完成, 存在问题
 */
//+ (MBProgressHUD *)zAlertConfirmMessage:(NSString *)message to:(UIView *)view andAddTarget:(id)target action:(SEL)selector;

/**
 弹窗提示, 点击确定后将执行Block, 让视图消失需要手动调用zCancelAlertForView:方法
 */
+ (MBProgressHUD *)zAlertMessage:(NSString *)message to:(UIView *)view performBlock:(void(^)())todoBlock;

@end
